import 'package:flutter/material.dart';
import 'package:get/get_navigation/src/root/get_material_app.dart';
import 'package:lyf_shop/http/core/lyf_net.dart';
import 'package:lyf_shop/http/request/lyf_home_request.dart';
import 'package:lyf_shop/router/router.dart';
import 'package:lyf_shop/utils/color_util.dart';
import 'package:lyf_shop/views/login/login_page.dart';
import 'package:lyf_shop/views/login/register_page.dart';
import 'package:lyf_shop/views/temp/app_test.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});


  @override
  Widget build(BuildContext context) {

    var count = 10.abs;

    // TODO: implement build
    return GetMaterialApp(
        title: "来伊份",
        theme: ThemeData(
          primarySwatch: primary,
          colorScheme: ColorScheme.fromSeed(seedColor: Colors.pink),
          useMaterial3: true,
        ),
        getPages: LYFRouter.getPages,
        home: LYFLoginPage());
  }

  Widget HomePage() {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Container(
          height: 90,
          width: 200,
          child:const Center(
            widthFactor: 1,
          child:  Text("测试"),
        ),),
        ElevatedButton(
            onPressed: () {

            },
            child: Icon(Icons.add))
      ],
    );
  }
}
